import sched
import time

def func():
    scheduler.enter(10, 1, func, ())
    print time.time()


if __name__ == '__main__':
    scheduler = sched.scheduler(time.time, time.sleep)
    scheduler.enter(10, 1, func, ())
    scheduler.run()
